<template>
  <div>
    <!-- <child2 /> -->
    <div v-for="(item, index) in list" :key="index">
      <h1>{{ item.name }}</h1>
      <mychild :list="item.children" v-if="item.children" />
    </div>
  </div>
</template>

<script>
export default {
  props: ["list"],
  data() {
    return {};
  },
  name: "mychild",
  methods: {},
  created() {},
  mounted() {},
  components: {},
  computed: {},
  watch: {},
};
</script>

<style lang="scss" scoped></style>
